package dao.impl;

import dao.UserDao;
import domain.User;

import java.util.List;
import java.util.Map;
import java.util.Properties;

public class UserDaoImpl implements UserDao {
    private String userName;
    private Integer age;

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public Map<String, User> getMaps() {
        return maps;
    }

    public void setMaps(Map<String, User> maps) {
        this.maps = maps;
    }

    public Properties getProperties() {
        return properties;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    private List<String> list;
    private Map<String, User> maps;
    private Properties properties;

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
    /*public UserDaoImpl() {
        System.out.println("初始化");

    }*/

    @Override
    public void save() {
        System.out.println(list);
        System.out.println(maps);
        System.out.println(properties);
    }

  /*
    //初始化方法
    public void init(){
        System.out.println("初始化方法");
     }

    //销毁方法
    public void destory(){
        System.out.println("销毁方法");
    }*/
}
